<template>
  <div>
    App
    <ul>
      <li v-for="(item, index) in 10" :key="index">
        {{ item }}
      </li>
    </ul>

    <ul>
      <li v-for="(item, index) in 'hello atguigu'" :key="index">
        {{ item }}
      </li>
    </ul>

    <!-- 
      给组件绑定的事件默认都是自定义事件 
      .native绑定的事件就是原生DOM事件
    -->
    <Child @click="handleClick" />
    <!-- <Child @click.native="handleClick" /> -->
  </div>
</template>

<script>
import Child from "./Child.vue";

export default {
  name: "App",
  components: {
    Child,
  },
  methods: {
    handleClick() {
      console.log("clicked");
    },
  },
};
</script>

<style scoped></style>
